﻿#ifndef HALCONIMAGEWIDGET_H
#define HALCONIMAGEWIDGET_H

#include <QWidget>
#include <QLabel>
#include "HalconWindowWidget.h"

class HalconImageWidget : public QWidget
{
    Q_OBJECT
public:
    explicit HalconImageWidget(QWidget *parent = nullptr);
    void setImage(const HObject& image);
    HalconWindowWidget* getHWindow(){return mWindow;}

signals:

private:
    void setupUI();
    void onPosRGBValue(const QPoint& pos, const QColor& color);
private:
    HalconWindowWidget* mWindow;
    QLabel* lblImgSize;
    QLabel* lblCurPos;
    QLabel* lblGrayValue;

};

#endif // HALCONIMAGEWIDGET_H
